package com.lxc.graduation.controller;

import com.lxc.graduation.service.JudicialDocumentService;
import com.lxc.graduation.utils.JsonData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: ck
 * @Description:
 * @Date: Create in 13:28 2021/3/4
 */
@RestController
@RequestMapping("/api/pub/v1/judicial_document")
public class JudicialDocumentController {
    @Autowired
    private JudicialDocumentService judicialDocumentService;

    @RequestMapping("findAll")
    public JsonData findAll()
    {
        return JsonData.buildSuccess(judicialDocumentService.findAll());
    }

    @RequestMapping("findById")
    public JsonData findById(Integer id)
    {
        return JsonData.buildSuccess(judicialDocumentService.findById(id));
    }
}
